Skip to content

refactor(rpc): normalize NoteSyncRecord with NoteMetadataHeader#1837

Merged
Mirko-von-Leipzig merged 6 commits intonextfrom
santiagopittella-note-metadata-header-response
Mar 27, 2026
Merged

refactor(rpc): normalize NoteSyncRecord with NoteMetadataHeader#1837
Mirko-von-Leipzig merged 6 commits intonextfrom
santiagopittella-note-metadata-header-response

Conversation

@SantiagoPittella
Copy link
Copy Markdown
Collaborator

closes #1720

  • Refactor NoteSyncRecord proto message to be NoteMetadataHeader + NoteInclusionInBlockProof instead of carrying the full NoteMetadata.
  • Add NoteMetadataHeader proto message containing the fixed-size metadata fields.
  • Add NoteAttachmentKind proto enum mapping to miden_protocol::note::NoteAttachmentKind.
  • Clients that need the full NoteMetadata (including attachment) should use GetNotesById.

@SantiagoPittella SantiagoPittella force-pushed the santiagopittella-note-metadata-header-response branch from facb2c5 to d198527 Compare March 25, 2026 17:36
Copy link
Copy Markdown
Contributor

@bobbinth bobbinth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Thank you! I left a couple of small comments inline.

@Mirko-von-Leipzig Mirko-von-Leipzig merged commit c27bbda into next Mar 27, 2026
18 checks passed
@Mirko-von-Leipzig Mirko-von-Leipzig deleted the santiagopittella-note-metadata-header-response branch March 27, 2026 09:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Replace full NoteMetadata with a fixed-size header in NoteSyncRecord

3 participants